<div class="content">
    <div class="panel panel-default panel-intro">
        <div class="panel-body">
            <div id="" class="tab-content">
                <div class="tab-pane fade active in" id="one">
                    <div class="widget-body no-padding">
                        <div class="bootstrap-table">
                            <div class="fixed-table-toolbar">
                                <div class="bs-bars pull-left">

                                </div>
                                    <table id="" class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%">
                                        <thead>

                                        <tr>
                                            <th class="bs-checkbox " style="text-align: center; vertical-align: middle;width:3%;height: 45px;" data-field="0">

                                            </th>

                                            <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="fid">
                                                <div class="th-inner ">ID</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:30%;" data-field="fid">
                                                <div class="th-inner ">产品</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width: 20%;" data-field="operate">
                                                <div class="th-inner ">操作</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                        </tr>
                                        </thead>
                                        <tbody data-listidx="0">
                                        {volist name="product" id="vo"}
                                        <tr data-index="0">
                                            <td class="bs-checkbox "></td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$vo.id}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$vo.s_name}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                <button class="btn btn-success btn-add " title="添加"  onclick='product_add("{$sense_id}","{$vo.id}");'><i class="fa fa-plus"></i> 产品添加</button>
                                            </td>
                                        </tr>
                                        {/volist}
                                        </tbody>
                                    </table>
                                    <div>{$product->render();}</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    function product_add(sense_id,id){
        parent.layer.closeAll();
        parent.window.location.href="/admin/adsense/index_ad_product_add?id="+id+"&sid="+sense_id;
    }
</script>